package com.bgs.mapper;

import com.bgs.entity.*;
import com.bgs.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LjpexclusiveMapper {
    List<Classification> getclassificationlike(String content);

    List<CommodityUnion> getcommoditylike(String content);

    List<Discuss> getdiscusslike(String content);

    Classification getclassxq(Integer id);

    Classification getclassxq1(Integer fatherId);

    List<Classification> getclassxq2(Integer id);

    List<Discuss> getrm();

    DiscussUnion getdiscussdan(Integer id);

    List<Comment> getcommentbytlid(Integer id);

    List<Comment> getwonderfulcomments(Integer id);

    List<Comment> getwonderfulcomments1(Integer commentId);

    Integer getcommentddbyid(Integer commentid);

    int setdianzan(@Param("commentid") Integer commentid,@Param("praise") Integer praise);

    int setpl(Comment comment);

    List<Discuss> getdiscussrm();

    List<Discuss> gettlbytyle(Integer type);

    int adddiscuss(Discuss discuss);

    List<CommodityUnion> rmcommodity();

    List<Commodity> inusercai(Integer userid);

    List<CommodityUnion> unusercai();

    List<CommodityUnion> inusercai1(String s);

    List<CommodityUnion> rmcommodity1();

    CommodityMax initspxq(Integer commodityid);

    List<Selection> getsptype(Integer commodityid);

    List<Commodityimgunion> getspimgunion(Integer commodityid);

    Commodityimg getspimg(Integer ciId);

    int addgwc(Shoppingcart shoppingcart);

    List<Shoppingcart> getgwcbyuserid(Integer userid);

    int updategwcbyid(Shoppingcart ss);

    int addsc(Collections collections);

    int delsc(@Param("userid") Integer userid, @Param("commodityid") Integer commodityid,@Param("isdel")String isdel);

    List<Collections> getissc(Integer userid);

    List<Store> initmd(@Param("commodityid")Integer commodityid,@Param("type")Integer type);

    User getuserbyuserid(Integer userId);

    List<Commoditystore> getkc(Integer selectionId);

    void updateusermoney(@Param("userid")Integer userId, @Param("v")Double v);

    void updatestorestock(@Param("csId")Integer csId, @Param("i")Integer i);

    void addcommodityorder(CommodityorderVo commodityorder);

    Commoditystore getstorebyid(@Param("storeId")Integer storeId, @Param("selectionId")Integer selectionId);

    List<CommodityMax> getcommodityquan();

    List<Commodityimg> getcommodityimg(Integer ciid);

    List<Commodityimgunion> getcommodityunion(Integer commodityid);

    List<Selection> getselection();

    int sunck(Integer commodityId);

    List<ShoppingcartUnion> getshoppingcart(Integer userid);

    CommodityUnion getcommoditybyid(Integer commodityId);

    Selection getselectionbyid(Integer selectionId);

    ShoppingcartUnion gwcjs(Integer scid);

    int delgwc(Integer scid);

    List<CommodityMax> commoditymaxquan();

    List<Classification> initclassfl();

    List<Classification> getlj(Integer id);

    List<Classification> getzilj(Integer classificationId);


    int addfootprint(Footprint footprint);
}
